<template>
  <VWorkDutyContent :dutyDate="dutyDate"></VWorkDutyContent>
</template>
<script setup lang="ts">
import { watch } from 'vue'
import VWorkDutyContent from './WorkDutyContent.vue'

import { ref } from 'vue'
import { useRoute } from 'vue-router'

const route = useRoute()
const dutyDate = ref()
watch(
  () => route,
  async () => {
    if (route.path == '/OA/Duty/WorkDutyAdd') dutyDate.value = route.query.dutyDate
  },
  { deep: true, immediate: true }
)
</script>
<style scoped lang="scss"></style>
